home *** CD-ROM | disk | FTP | other *** search
- Subject: Japanese Font Menu
- Sent: 8/18/96 11:44 PM
- Received: 8/19/96 9:01 AM
- From: Shinji Shimizu, shimizu@kyoto.screen.co.jp
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Hi ODF Team,
-
-
- I tried to make 'Font'('Typeface') menu.
- Below is a way that you taught me.
-
- But when fontname is Japanese, it does not work well.
- Displaied menu chars are changed to English Script.
-
- Tell me how to make Japanese 'Font' menu.
-
-
- Best Regards.
-
- void AddFontsToMenu(Environment* ev, FW_CPullDownMenu* menu)
- {
- short count = 0;
- FW_CFontIterator fontIter;
- FW_CString fontName;
- ODCommandID commandID = cFirstFontCommand;
- for (fontName = fontIter.First(); fontIter.IsNotComplete();
- fontName = fontIter.Next())
- {
- menu->AppendTextItem(ev, fontName, commandID+count);
- count++;
- }
- gFontCount = count;
- }
- =====================================
- Shinji Shimizu
- DAINIPPON SCREEN MFG. CO, LTD.
- Research and Development Department
- Imageing Products Division
- E-mail:$B!!(Bshimizu@screen.co.jp
- =====================================
-
-